package zhongbo.java.air.flightpath.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("航机表")
@TableName("air_flight_path")
public class FlightPath {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @ApiModelProperty("关联飞机ICAO码")
    private String icaoCode;
    @ApiModelProperty("时间戳（精确到毫秒）")
    private Date timestamp;
    @ApiModelProperty("纬度（WGS84坐标系）")
    private double latitude;
    @ApiModelProperty("经度（WGS84坐标系）")
    private double longitude;
    @ApiModelProperty("海拔高度（米）")
    private int altitude;
    @ApiModelProperty("地速（公里/小时）")
    private short speed;
    @ApiModelProperty("航向角（0-359度）")
    private short heading;
    @ApiModelProperty("数据源类型（枚举值：ADS_B, RADAR, MLAT）")
    private String sourceType;

    public enum sourceType{
        ADS_B,//数据源类型
        RADAR,//雷达数据源
        MLAT //多边测量数据源
    }
}
